package cn.stylefeng.guns.modular.transport.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 运输信息表
 */
@TableName("transport_msg")
@Data
public class TransportMsg implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 运输单号
     */
    @TableField("dispatch_number")
    private String dispatchNumber;

    /**
     * 状态
     */
    @TableField("status")
    private String status;

    /**
     * 类型
     */
    @TableField("msg_type")
    private String msgType;

    /**
     * 内容
     */
    @TableField("content")
    private String content;

    /**
     * 时间
     */
    @TableField("times")
    private String times;

    /**
     * 装车时间
     */
    @TableField("londing_time")
    private String londingTime;

    /**
     * 人员
     */
    @TableField("create_username")
    private String createUsername;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     *收货地址id
     */
    @TableField("v1")
    private String v1;

    /**
     *收货单位
     */
    @TableField("v2")
    private String v2;

    /**
     *收货单位id
     */
    @TableField("v3")
    private String v3;

    /**
     *回单文件id
     */
    @TableField("v4")
    private String v4;

    /**
     * 是否与送货地址一致
     */
    @TableField("sfyz")
    private String sfyz;

    /**
     * 微信昵称
     */
    @TableField("nick_name")
    private String nickName;

    /**
     * 微信openid
     */
    @TableField("open_id")
    private String openId;

    @Override
    public String toString() {
        return "TransportMsg{" +
        "id=" + id +
        ", dispatchNumber=" + dispatchNumber +
        ", status=" + status +
        ", msgType=" + msgType +
        ", content=" + content +
        ", times=" + times +
        ", deptId=" + deptId +
        ", deliverId=" + deliverId +
        ", v1=" + v1 +
        ", v2=" + v2 +
        ", v3=" + v3 +
        ", v4=" + v4 +
        "}";
    }
}
